package com.health.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.File;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author fengjiaxing
 * @since 2023-04-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
  @ApiModel(value = "Disease对象", description = "")
public class Disease implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键,id自增")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("一级科室")
      private Integer parentOneId;

      @ApiModelProperty("二级科室")
      private Integer parentTwoId;

      @ApiModelProperty("一级科室名称")
      private String parentOneName;

      @ApiModelProperty("二级科室名称")
      private String parentTwoName;

      @ApiModelProperty("疾病名称")
      private String diseaseName;

      @ApiModelProperty("简介")
      private String info;

      @ApiModelProperty("逻辑删除")
      private Byte isDeleted;

      @ApiModelProperty("排序")
      private Integer sort;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;
}
